package service.impl;

import bean.pojo.GdAnswer;
import dao.GdAnswerMapper;
import org.springframework.stereotype.Service;
import service.GdAnswerService;

import javax.annotation.Resource;
import java.util.List;


@Service
public class GdAnswerServiceImpl implements GdAnswerService {

    @Resource
    private GdAnswerMapper gdAnswerMapper;

    public boolean insert(GdAnswer pojo){
        return gdAnswerMapper.insert(pojo)>0;
    }

    public boolean insertList(List< GdAnswer> pojos){
        return gdAnswerMapper.insertList(pojos)>0;
    }

    public List<GdAnswer> select(GdAnswer pojo){
        return gdAnswerMapper.select(pojo);
    }

    public boolean update(GdAnswer pojo){
        return gdAnswerMapper.update(pojo)>0;
    }

}
